// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

//vue-lazyload
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload,{
	preLoad: 1.3,
	error: '../static/img/loading.png',  //记载失败显示的图片
	loading: '../static/img/loading.png',  //加载中显示的图片
	attempt: 1
});

//element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//axios
import axios from 'axios';
import VueAxios from 'vue-axios';
Vue.use(VueAxios, axios); //一定要注意引入的顺序

//vuex
import store from '@/store/store'


//注册过滤器
import * as filters from '@/assets/js/filters'
Object.keys(filters).forEach(key => { //因为实际项目中肯定有多个过滤器,所以要循环分别注册到过滤器里
  Vue.filter(key, filters[key]);
})




import "../static/css/zml.css"
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})
